package com.mapper;


import com.Dto.GuidanceSessionOfCounselorDto;
import com.Dto.GuidanceSessionOfSupervisorDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pojo.GuidanceSession;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.Collection;
import java.util.List;

@Repository
@Mapper
public interface GuidanceSessionMapper extends BaseMapper<GuidanceSession> {

    List<GuidanceSessionOfCounselorDto> getGuidanceSessionsByCounselor(@Param("counselorId") int counselorId);

    List<GuidanceSessionOfSupervisorDto> getGuidanceSessionsBySupervisor(@Param("supervisorId") int supervisorId);

    int createNewGuidanceSession(Integer counselorId, Integer supervisorId, LocalDateTime time, Integer state);

    GuidanceSession getOriginalData(int counselorId, int supervisorId);

    boolean addDuration(Integer id, LocalTime guidanceDuration);
    boolean updateState(Integer id);

    Integer findSessionId(Integer counselorId, Integer supervisorId, LocalDateTime time);



}
